import request from '/@/utils/request'
import {prefix} from '/@/api/money/index'

export default {
  getPage(params) {
    return request({
      url: prefix + '/capitalAccount/getPage',
      method: 'get',
      params
    })
  },
  getList() {
    return request({
      url: prefix + '/capitalAccount/getAccountList',
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: prefix + '/capitalAccount/create',
      method: 'post',
      data
    })
  },
  edit(data) {
    return request({
      url: prefix + '/capitalAccount/edit',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: prefix + '/capitalAccount/delete',
      method: 'post',
      data
    })
  }
}
